package com.pubinfo.passbook.common.service.master.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.pubinfo.passbook.common.entity.TSubsidiaryPrivateKey;
import com.pubinfo.passbook.common.model.bo.SubsidiaryInfo;
import com.pubinfo.passbook.common.model.dto.system.SubsidiaryPrivateKey;
import com.pubinfo.passbook.common.service.master.TSubsidiaryPrivateKeyService;
import com.pubinfo.passbook.common.mapper.TSubsidiaryPrivateKeyMapper;
import org.springframework.stereotype.Service;

/**
 *
 */
@Service
public class TSubsidiaryPrivateKeyServiceImpl extends ServiceImpl<TSubsidiaryPrivateKeyMapper, TSubsidiaryPrivateKey>
    implements TSubsidiaryPrivateKeyService {
  
  @Override
  public IPage<SubsidiaryInfo> listPrivateKey(SubsidiaryPrivateKey paramObj) {
    
    IPage<SubsidiaryInfo> iPage = page(paramObj.getPage());
    return this.baseMapper.listPrivateKey(iPage, paramObj);
  }
//
//  @Override
//  public List<String> check(String id) {
//    List<SubsidiaryInfo> infoList = this.baseMapper.listTaxAllSubsidiaryInfo(id);
//    String startDate = Util.getTaxOnTheDay();
//    List<String> names = new ArrayList<>();
//    if (!CollectionUtils.isEmpty(infoList)) {
//      for (SubsidiaryInfo info : infoList) {
//        UUID uuid = UUID.randomUUID();
//        QueryByTimeResult result = taxServer.queryByTime(uuid.toString(), startDate, info);
//        if (result == null || !result.getSuccess()) {
//          names.add(info.getName());
//        }
//      }
//    }
//
//    return names;
//  }
}




